package net.eascn.model
{
	import flash.events.EventDispatcher;
	
	import mx.collections.ArrayCollection;

	[Bindable]
	public class ModelLocator extends EventDispatcher
	{
		public function ModelLocator()
		{
			if(_instance)
				throw new Error('单件不能被重复实例化')
		}
		static private var _instance:ModelLocator = null;
		static public function getInstance():ModelLocator
		{
			if(!_instance)
				_instance = new ModelLocator();
			return _instance;	
		}
		
		public var users:ArrayCollection = new ArrayCollection();
		public var albums:ArrayCollection = new ArrayCollection();
		public var photos:ArrayCollection = new ArrayCollection();
		 public var outputMessage:String = '';
		
		public var percent:int = 0;
		
		public var seletIndex:int = 0;
	}
}